package com.sjc.grpc.server;

import com.sjc.grpc.server.grpc.GrpcServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@PropertySource({"grpc.properties"})
public class GrpcServerApplication {

	public static void main(String[] args) {
		ApplicationContext iocContainer = SpringApplication.run(GrpcServerApplication.class, args);
		GrpcServer grpcServer = iocContainer.getBean(GrpcServer.class);
		grpcServer.start();
	}

}
